home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
428_02
/
libsrc
/
makefile
< prev
next >
Wrap
Makefile
|
1994-03-13
|
2KB
|
110 lines
#-----------------------------------------------------------------------;
# MAKEFILE ;
# ;
# PICTOR Makefile, Version 1.51, Copyright (c) 1992-94 SoftCircuits ;
# Redistributed by permission. ;
#-----------------------------------------------------------------------;
COMPILER=2 # 1 = Microsoft C 7.0, 2 = Borland C 3.0
MODEL=1 # 1 = small/tiny, 2 = medium, 3 = compact, 4 = large/huge
#-----------------------------------------------------------------------;
OBJS=beep.obj clock.obj cls.obj comgets.obj comlib.obj compress.obj\
computs.obj comread.obj comwrite.obj editbox.obj frame.obj freetree.obj\
getaltky.obj getcurs.obj gethotky.obj getscrn.obj getvconf.obj getwpos.obj\
help.obj hookints.obj hputs.obj hstrlen.obj initvid.obj kbdedit.obj\
kbdflush.obj kbdread.obj kbdready.obj kbdshift.obj listbox.obj menu.obj\
msgbox.obj multedit.obj pause.obj pickfile.obj prnputc.obj prnputs.obj\
prnwrite.obj pushcurs.obj pushstat.obj putscrn.obj scroll.obj setctype.obj\
setcurs.obj setwpos.obj showcurs.obj statusbr.obj tone.obj uncomp.obj\
vgetca.obj vputa.obj vputc.obj vputca.obj vputs.obj vrepa.obj vrepc.obj\
wclreol.obj wcolor.obj wopen.obj wpane.obj wputc.obj wputs.obj wrepa.obj\
wrepc.obj wsynccur.obj wtitle.obj xprintf.obj
!IF $(COMPILER)==1
SMALL=S
MEDIUM=M
COMPACT=C
LARGE=L
!ELSE
!IF $(COMPILER)==2
SMALL=s
MEDIUM=m
COMPACT=c
LARGE=l
!ELSE
!ERROR Unknown compiler specified
!ENDIF
!ENDIF
!IF $(MODEL)==1
MODELCHR=$(SMALL)
MODELSTR=small
!ELSE
!IF $(MODEL)==2
MODELCHR=$(MEDIUM)
MODELSTR=medium
!ELSE
!IF $(MODEL)==3
MODELCHR=$(COMPACT)
MODELSTR=compact
!ELSE
!IF $(MODEL)==4
MODELCHR=$(LARGE)
MODELSTR=large
!ELSE
!ERROR Unknown memory model
!ENDIF
!ENDIF
!ENDIF
!ENDIF
!IF $(COMPILER)==1 # Microsoft C
LIBNAME=PICTOR$(MODELCHR)M
CC=cl
CFLAGS=/W3 /A$(MODELCHR) /Ox /c
AS=ml
AFLAGS=/Dmemmodel=$(MODELSTR) /W3 /c
LIB=lib
.asm.obj:
$(AS) $(AFLAGS) $*.asm
$(LIB) $(LIBNAME)-+$*;
.c.obj:
$(CC) $(CFLAGS) $*.c
$(LIB) $(LIBNAME)-+$*;
$(LIBNAME).LIB : $(OBJS)
!ENDIF
!IF $(COMPILER)==2 # Borland C
LIBNAME=PICTOR$(MODELCHR)B
CC=bcc
CFLAGS=/m$(MODELCHR) /O1 /c
AS=tasm
AFLAGS=/Dmemmodel=$(MODELSTR) /W2 /m2 /mx
LIB=tlib
.asm.obj:
$(AS) $(AFLAGS) $*.asm
$(LIB) $(LIBNAME)-+$*
.c.obj:
$(CC) $(CFLAGS) $*.c
$(LIB) $(LIBNAME)-+$*
$(LIBNAME).LIB : $(OBJS)
!ENDIF